home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Broadcaster / BroadcastLoop.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  606 b   |  35 lines  |  [TEXT/CWIE]

  1. // BroadcastLoop.h
  2.  
  3. #ifndef BroadcastLoop_h
  4. #define BroadcastLoop_h
  5.  
  6. #ifndef ListLoop_h
  7. #include "ListLoop.h"
  8. #endif
  9. #ifndef ContextMaintainer_h
  10. #include "ContextMaintainer.h"
  11. #endif
  12. #ifndef Broadcaster_h
  13. #include "Broadcaster.h"
  14. #endif
  15.  
  16. template < class Protocol >
  17. class BroadcastLoop: private ListLoop< Protocol >
  18.   {
  19.     typedef ListLoop< Protocol > Inherited;
  20.     
  21.     private:
  22.         ContextMaintainer savedContext;
  23.         
  24.     public:
  25.         BroadcastLoop( const Broadcaster<Protocol>& source );
  26.         
  27.         void operator++();
  28.         void operator++(int)            { operator++(); }
  29.         
  30.         Inherited::Finished;
  31.         Inherited::Unfinished;
  32.   };
  33.  
  34. #endif
  35.